package com.biz.service.basic;

import com.biz.model.Hmodel.TBizPerson;
import com.biz.model.Hmodel.basic.TGoodsBrand;
import com.biz.model.Hmodel.basic.TGoodsUnit;
import com.biz.model.Pmodel.User;
import com.biz.model.Pmodel.basic.*;
import com.biz.service.base.BaseServiceI;
import com.framework.model.MessageBox;
import com.framework.model.Pager;
import com.framework.model.Paging;

import java.util.List;
import java.util.Map;

/**
 * Created by tomchen on 17/1/11.
 */
public interface PropertyServiceI extends BaseServiceI<TGoodsBrand> {

    Pager<PgoodsBrand> showBrand(Pager<PgoodsBrand> pager) throws Exception;

    MessageBox deBrandByIds(String ids)throws Exception;

    Pager<PgoodsUnit> showUnit(Pager<PgoodsUnit> pager) throws Exception;

    TGoodsUnit getUnitById(String code)throws Exception;

    MessageBox doSaveOrUpdateUnit(PgoodsUnit pgoodsUnit)throws Exception;

    MessageBox deUnitByIds(String ids)throws Exception;

    List<PwxgoodsGroup> getAllGroupTagList(String type)throws  Exception;

    PwxgoodsGroup getGroupTagDetail(String type,String id)throws Exception;

    /**
     * 新增更新分组标签
     * @param pwxgoodsGroup
     * @return
     * @throws Exception
     */
    MessageBox doSaveOrUpdateGroupTag(PwxgoodsGroup pwxgoodsGroup)throws Exception;

    /**
     * 删除分组标签
     * @param id
     * @param pid
     * @return
     * @throws Exception
     */
    MessageBox delgroupTag(String id,String pid)throws Exception;

    /**
     * 获取所有商品属性
     * @return
     * @throws Exception
     */
    List<PbaseStandard> getAllStandardList(String type)throws Exception;

    /**
     * 获取sku属性
     * @param id
     * @return
     * @throws Exception
     */
    PbaseStandard getPbaseStandard(String id)throws Exception;

    /**
     * 新增更新商品sku
     * @param pbaseStandard
     * @return
     * @throws Exception
     */
    MessageBox doSaveOrUpdateStandard(PbaseStandard pbaseStandard)throws Exception;

    /**
     * 删除sku
     * @param id
     * @return
     * @throws Exception
     */
    MessageBox delStandard(String id)throws Exception;

}

